package com.gx.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gx.mapper.TbBusinessTaskMapper;
import com.gx.model.pojo.TbBusinessTask;
import com.gx.service.TbBusinessTaskService;
import org.springframework.stereotype.Service;
/**
 * @Author Liu-pj
 * @Date 2022/8/24 15:29
 * @Desc 流程绑定操作
 **/
@Service
public class TbBusinessTaskServiceImpl extends ServiceImpl<TbBusinessTaskMapper, TbBusinessTask> implements TbBusinessTaskService {
    /**
     * 根据实例id查询dataId
     *
     * @param instancesId 实例id
     * @return 流程启动信息
     */
    @Override
    public TbBusinessTask getFlowByInstancesId(String instancesId) {
        LambdaQueryWrapper<TbBusinessTask> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(TbBusinessTask::getInstanceId, instancesId);
        return this.getOne(wrapper);
    }
}